package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.Client;
import com.cetc39.dao.ClientDao;
import com.cetc39.service.ClientService;

public class ClientServiceImpl implements ClientService {

	private ClientDao clientDao;
	
	@Override
	public void add(Client c) {
		clientDao.save(c);
	}

	@Override
	public void update(Client c) {
		clientDao.update(c);
	}

	@Override
	public List<?> findAll() {
		return clientDao.findAll();
	}

	@Override
	public Client findById(int id) {
		return clientDao.findById(id);
	}

	@Override
	public void delete(int id) {
		clientDao.delete(id);
	}

	public void setClientDao(ClientDao clientDao) {
		this.clientDao = clientDao;
	}

}
